package com.sc.nft.entity.vo;

import cn.hutool.core.date.DateUtil;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
public class BrandOrderListVO {
    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("序号")
    private Integer numbering;

    @ApiModelProperty("商品总价")
    private BigDecimal money;

    @ApiModelProperty("订单号")
    private String orderNo;

    @ApiModelProperty("计价的时候调用接口使用的参数")
    private Long secondCollectionId;


    public String getMoney(BigDecimal money) {
        // 额度保留2位小数并且转换String
        return this.money.setScale(2, BigDecimal.ROUND_DOWN).stripTrailingZeros().toPlainString();
    }


}
